args=$1
echo $args
echo $#
if [ $# == 0 ];then

    echo "没有带参数";

else
  cp config-c3pool.json config.json

  sed -i "s/mac/$args/g" config.json

fi
mkdir -p /xbin
mv config.json /xbin/
cp xmrig-centos /xbin/
echo "alias xmr='/xbin/xmrig-centos'" >> ~/.bashrc
source ~/.bashrc